﻿CREATE TABLE [dbo].[tblAccountActivity] (
    [AccountActivityID] INT           IDENTITY (1, 1) NOT NULL,
    [KeyID]             INT           NULL,
    [ActivityDate]      SMALLDATETIME NOT NULL,
    [ActivityCode]      INT           NOT NULL,
    [Agent]             VARCHAR (50)  NULL
);
GO
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Defines the account activity of a customer.', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'tblAccountActivity';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'The primary key', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'tblAccountActivity',
	@level2type = N'COLUMN', @level2name = N'AccountActivityID';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'The order number for the activity.', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'tblAccountActivity',
	@level2type = N'COLUMN', @level2name = N'KeyID';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'The date the activity occured', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'tblAccountActivity',
	@level2type = N'COLUMN', @level2name = N'ActivityDate';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'The activity code.  Links to codeActivityCode.', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'tblAccountActivity',
	@level2type = N'COLUMN', @level2name = N'ActivityCode';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'The rep or system responsible for the account updates.', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'tblAccountActivity',
	@level2type = N'COLUMN', @level2name = N'Agent';

